package org.car.world.service;

import java.util.List;

import org.car.world.core.entily.CommentsTable;
import org.springframework.cache.annotation.Cacheable;

public interface CommentsService {


    int deleteByPrimaryKey(Integer commentsId);

    int insert(CommentsTable record);

    CommentsTable selectByPrimaryKey(Integer commentsId);

    @Cacheable(value = "Commlist", keyGenerator = "cacheKeyGenerator")
    List<CommentsTable> selectAll();

    int updateByPrimaryKey(CommentsTable record);

    @Cacheable(value = "comSelectAllCount", keyGenerator = "cacheKeyGenerator")
    int selectAllPlNum(Integer merchantsId);

    List<CommentsTable> selectAllMerid(Integer merchantsId);

    @Cacheable(value = "comSelectAllMerid", keyGenerator = "cacheKeyGenerator")
    List<CommentsTable> selectAllMeridLimit(Integer merchantsId, Integer form, Integer size);
}